<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<%
	UserInfo user = (UserInfo)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
	String siteId = user.getSiteId();
	String status = request.getAttribute("status")+"";
	String msg = request.getAttribute("msg")+"";
	String errorJson = "";
	if(null!=request.getAttribute("errorJson")){
		errorJson = request.getAttribute("errorJson")+"";
	}
%>

<script>
	<%
		if("SUCCESS".equalsIgnoreCase(status)){
			%>
				top.$.messager.alert("提示","上传成功：<br/>"+"<%=msg%>","",function(){
					top.XF.Destin.listDestin('<%=siteId%>');
				});
			<%
		}else{
			%>
		  	top.$.messager.show({
				title:'提示',
				msg:'上传失败:'+"<%=msg%>",
				timeout:10000,
				showType:'slide'
			  });
			var errorJson = '<%=errorJson%>';
			errorJson = JSON.parse(errorJson);
			top.XF.Destin.refreshAfterAddFaild(errorJson);
		<%
		}
	%>
	
	
	/* top.$.messager.show({
		showType:'fade',
		msg:"操作成功",
		title:"提示",
		timeout:"1000",
		style:{ 
            right:'', 
            top:document.body.scrollTop+document.documentElement.scrollTop, 
            bottom:'' 
        } 
	}); */
</script>
